home *** CD-ROM | disk | FTP | other *** search
/ kermit.columbia.edu / kermit.columbia.edu.tar / kermit.columbia.edu / newsgroups / misc.20021006-20030409 / 000332_b.stewart@bom.gov.au_Tue Feb 18 08:55:41 EST 2003.msg < prev    next >
Text File  |  2003-04-08  |  3KB  |  76 lines

  1. Article: 14119 of comp.protocols.kermit.misc
  2. Path: newsmaster.cc.columbia.edu!panix!newsfeed.media.kyoto-u.ac.jp!snewsf0.syd.ops.aspac.uu.net!news1.optus.net.au!optus!ken-transit.news.telstra.net!news.telstra.net!vicpull1.telstra.net!not-for-mail
  3. Message-ID: <3E518AAA.F4D9E151@bom.gov.au>
  4. From: Bruce Stewart <b.stewart@bom.gov.au>
  5. X-Mailer: Mozilla 4.77 [en] (Windows NT 5.0; U)
  6. X-Accept-Language: en
  7. MIME-Version: 1.0
  8. Newsgroups: comp.protocols.kermit.misc
  9. Subject: Re: Running multiple kermit scripts on one connection
  10. References: <775a2ab0.0302171458.f8f21f9@posting.google.com> <b2rrbl$ks3$1@watsol.cc.columbia.edu> <3E517E98.D89D779C@bom.gov.au> <b2rvbh$nnc$1@watsol.cc.columbia.edu>
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. Lines: 54
  14. Date: Tue, 18 Feb 2003 12:21:46 +1100
  15. NNTP-Posting-Host: 134.178.5.131
  16. X-Complaints-To: abuse@telstra.net
  17. X-Trace: vicpull1.telstra.net 1045531086 134.178.5.131 (Tue, 18 Feb 2003 12:18:06 EST)
  18. NNTP-Posting-Date: Tue, 18 Feb 2003 12:18:06 EST
  19. Organization: Customer of Telstra Internet Direct
  20. Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:14119
  21.  
  22. For that last way. To ignore CD you do set carrier off, how do you make
  23. the modem ignore DTR?
  24.  
  25. Frank da Cruz wrote:
  26.  
  27. > In article <3E517E98.D89D779C@bom.gov.au>,
  28. > Bruce Stewart  <b.stewart@bom.gov.au> wrote:
  29. > :
  30. > : --------------0E4B00F8CCF00119C91BFB8D
  31. > : Content-Type: text/plain; charset=us-ascii
  32. > : Content-Transfer-Encoding: 7bit
  33. > :
  34. > : OK, that second method sounds like it would do the job. I will give it a try
  35. > : but first I want to ask you another question.
  36. > :
  37. > : I have been looking at the documentation and found the following under
  38. > : Command-line options:
  39. > :
  40. > :  -l _number
  41. > :
  42. > : where number refers to the Windows device handle for a communication
  43. > : connection that has already been opened by another process.
  44. > :
  45. > I thought of suggesting that but to be frank :-) I don't know if Windows
  46. > device handles are valid only within a process tree, or system-wide.
  47. > I suppose it's worth a shot.
  48. >
  49. > : I tried the following to test it:
  50. > : 1-I opened a kermit instance, and opened a connection to com port
  51. > :    2, which is where the modem is connected.
  52. > : 2-I then tried to open another instance of kermit using the follwoing
  53. > :    line:
  54. > :       run k95 -l _\v(ttyfd),
  55. > :
  56. > :       but got the following respose when the other kermit instance opened:
  57. > :
  58. > :       "can't open device",
  59. > :
  60. > : Now, I don't know whether the file descriptor is the same as the
  61. > : windows device handle. Maybe they are totally different. I will try doing
  62. > : it from the program, opening a device handle and passing that into each
  63. > : kermit instance. Hopefully that will work.
  64. > :
  65. > Either the process handle is not valid or else you can't have the same
  66. > device opened for read/write access by two different processes.
  67. > Somebody else might answer later with better information.
  68. >
  69. > Another possibility, of course, is to configure the modem to ignore DTR and
  70. > Kermit to ignore CD.  Then you can open and close the port all you like, but
  71. > then it's no longer straightforward to catch broken connections, and you
  72. > can no longer hang up a connection simply by closing the port.
  73. >
  74. > - Frank
  75.  
  76.